import request from '@/utils/request'

export function listTransfer(query) {
  return request({
    url: '/wms/transfer/list',
    method: 'get',
    params: query
  })
}

export function getTransfer(id) {
  return request({
    url: '/wms/transfer/' + id,
    method: 'get'
  })
}

export function addTransfer(data) {
  return request({
    url: '/wms/transfer',
    method: 'post',
    data: data
  })
}

export function updateTransfer(data) {
  return request({
    url: '/wms/transfer',
    method: 'put',
    data: data
  })
}

export function delTransfer(id) {
  return request({
    url: '/wms/transfer/' + id,
    method: 'delete'
  })
}

export function changeTransferStatus(data) {
  return request({
    url: '/wms/transfer/status',
    method: 'put',
    data: data
  })
}

